import {Icon, NavBar} from 'antd-mobile'
import {history} from 'umi'
import React,{memo} from 'react'

function MyNavBar(props) {
  return (
    <NavBar
      mode="light"
      icon={<Icon type="left"/>}
      onLeftClick={() => {
        history.goBack()
      }}
    >{props.title || '导航栏'}</NavBar>
  )
}

export default memo(MyNavBar)
